package com.yc.sole.system.request;

import jakarta.validation.constraints.NotBlank;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

import java.io.Serializable;

/**
 * @author yizuomin
 * @date 2023/5/9 20:56
 **/
@Data
public class UserUpdatePwdReq implements Serializable {

    private static final long serialVersionUID = -4026416227156386116L;

    /**
     * 原密码
     */
    @NotBlank
    @Length(min = 6, max = 18)
    private String password;
    /**
     * 新密码
     */
    @NotBlank
    @Length(min = 6, max = 18)
    private String newPassword;
    /**
     * 确认新密码
     */
    @NotBlank
    @Length(min = 6, max = 18)
    private String confirmNewPassword;
}
